home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / rsync.postinst < prev    next >
Text File  |  2008-07-28  |  544b  |  28 lines

  1. #!/bin/sh -e
  2.  
  3. action="$1"
  4. oldversion="$2"
  5.  
  6. if [ "$action" != configure ]
  7.   then
  8.   exit 0
  9. fi
  10.  
  11.  
  12. if [ -x /etc/init.d/rsync ]; then
  13.         update-rc.d rsync start 20 2 3 4 5 . stop 20 1 . >/dev/null
  14.         if [ -x /usr/sbin/invoke-rc.d ]; then
  15.                 invoke-rc.d rsync restart
  16.         else
  17.                 /etc/init.d/rsync restart
  18.         fi
  19. fi
  20.  
  21.  
  22. # Remove shutdown and reboot links; this init script does not need them.
  23. if dpkg --compare-versions "$2" lt "2.6.8-2ubuntu2"; then
  24.     rm -f /etc/rc0.d/K20rsync /etc/rc6.d/K20rsync
  25. fi
  26.  
  27. exit 0
  28.